﻿using System;
using System.Collections;

namespace _09_Console
{
    internal class Program
    {
        static void Main(string[] args)
        {
            // 创建人类对象
            //Person person = new Person();

            // 给属性赋值
            //person.Name = "Gavin"; 
            //person.Birthday = DateTime.Parse("2003-11-14");
            //person.IdCard = "123546544748";
            //person.Sex = "男";
            //使用构造函数创建对象
            Person person = new Person("Gavin","123456789",DateTime.Parse("2003-11-14"),"男");
            person.Eat();
            person.Print();
            Console.WriteLine();

            Person person2 = new Person("老王");
            person2.Eat();
            person2.Print();
            Console.WriteLine();

            Person person3 = new Person("潇湘","12325884564", DateTime.Parse("2003-11-14"), "女");
            person3.Eat();
            person3.Print();
            Console.WriteLine();

        }
    }
}
